<template>
  <view>
    <view class="newsbox" :class="{ newsbox_max: hasNotchInScreen }">
      <!-- <view class="toubucss"> 账号注册 </view> -->
      <view class="kefuimg2">
        <!-- <i-icon icon="iconkefu" type="single" size="46rpx"></i-icon>
		    <text class="kefuname">
		      客服
		    </text> -->
      </view>
    </view>
    <!-- 		<view>
			<view class="status_bar">
					这里是状态栏 
			</view>
			<view class="status_bar_title"> 账号注册 </view>
		</view> -->
    <view class="container">
      <view class="line item-top">
        <view class="small-title" v-if="showNamePlaceholder">企业名称/个体经营户</view>
        <view class="tel">
          <input
            class="uni-input"
            :placeholder="namePlaceholder"
            v-model="searchkey"
            placeholder-style="font-size:40rpx;font-weight:bold;color:#666"
            @input="clearInput0"
            @focus="toggleSmalltitle(0, 0)"
            @blur="toggleSmalltitle(0, 1)"
          />
          <view
            class="dele-icon"
            v-if="showNameClearIcon"
            @click="clearIcon('searchkey')"
          >
            <i-icon
              icon="iconquxiaoxunjia"
              type="single"
              size="34rpx"
              color="#e1e1e1"
            ></i-icon>
          </view>
        </view>
        <view class="tips">公司名称与营业执照一致</view>
        <view class="company" v-show="showComany">
          <view class="ul">
            <view class="title">请选择下列对应公司</view>
            <scroll-view
              v-if="list.length"
              class="li-list"
              @scrolltolower="SearchCompany('scoll')"
              scroll-y
              :style="{ height: listHeight.yzcHeight + 'rpx', width: '650rpx' }"
            >
              <view
                v-for="(item, index) in list"
                :key="index"
                class="li"
                @click="goAuthenticationPage(item.name, true)"
              >
                {{ item.name }}
              </view>
            </scroll-view>
            <view v-else>
              <view class="li"> 暂无对应公司 </view>
            </view>
          </view>
          <view class="ul">
            <view class="title">无对应公司请选择下列添加</view>
            <scroll-view
              v-if="qcclist.length"
              class="li-list"
              @scrolltolower="qccvaguesearchCompany('scoll')"
              scroll-y
              :style="{ height: listHeight.qccHeight + 'rpx', width: '650rpx' }"
            >
              <view
                class="li"
                v-for="(item, index) in qcclist"
                :key="'qcc' + index"
                @click="goAuthenticationPage(item.name, false)"
              >
                {{ item.name }}
              </view>
            </scroll-view>
            <view v-else>
              <view class="li"> 暂无对应公司 </view>
            </view>
          </view>
        </view>
      </view>
			<!-- {{showLine && !isUserIdentity}} -->
			<!-- {{showLine}} -->
      <view class="line" v-if="showLine">
        <view class="small-title" v-if="showpasswordPlaceholder"
          >请设置密码</view
        >
        <view class="tel">
          <u-icon
            class="eye"
            :name="eye"
            @click="changePassword(0)"
            color="#ddd"
            size="34"
            v-if="showPasswordClearIcon"
          ></u-icon>
          <view class="input">
            <input
              class="uni-input uni-input-password"
              :placeholder="passwordPlaceholder"
              v-model="Password"
              maxlength="20"
              placeholder-style="font-size:40rpx;font-weight:bold;color:#666"
              @input="clearInput1"
              @focus="toggleSmalltitle(1, 0)"
              @blur="toggleSmalltitle(1, 1)"
              :password="showPassword"
            />
            <view
              class="dele-icon"
              v-if="showPasswordClearIcon"
              @click="clearIcon('Password')"
            >
              <i-icon
                icon="iconquxiaoxunjia"
                type="single"
                size="34rpx"
                color="#e1e1e1"
              ></i-icon>
            </view>
          </view>
        </view>
        <view class="tips">密码为6-20位</view>
      </view>
      <!-- 	<view class="line" v-if="showLine">
			<view class="small-title" v-if="againshowpasswordPlaceholder">请确认密码</view>
			<view class="tel">
				<u-icon class="eye" :name="againeye" @click="changePassword(1)" color="#ddd" size="34" v-if="againshowPasswordClearIcon"></u-icon>
				<view class="input">
					<input class="uni-input uni-input-password"
						:placeholder="againpasswordPlaceholder"
						v-model="surepassword"
						maxlength="20"
						placeholder-style="font-size:40rpx;font-weight:bold;color:#666"
						@input="clearInput2"
						@focus="toggleSmalltitle(2,0)"
						@blur="toggleSmalltitle(2,1)"
						:password="againshowPassword" />
					<view class="dele-icon" v-if="againshowPasswordClearIcon" @click="clearIcon('surepassword')">
						<i-icon icon="iconquxiaoxunjia" type="single" size="34rpx" color="#e1e1e1"></i-icon>
					</view>
				</view>
			</view>
			<view class="tips">请保持两次输入的密码一致</view>
		</view> -->
      <!-- 完成 -->
			<!--  -->
      <view v-if="!showComany">
        <button
				  :disabled="isDisabled"
          :class="isDisabled ? 'btn-disable' : 'btn-primary'"
          @click="$u.throttle(setPassword, 1000)"
        >
          完成
        </button>
      </view>
    </view>
		<!-- 弹窗 -->
		<u-popup  v-model="popshow" mode="center" :mask-close-able='false'>
		  <view class="popup-content">
		    <view class="popup-main">
		      <view class="icon">
		        <i-icon
		          icon="icontijiaochenggong"
		          type="single"
		          size="128rpx"
		          color="#4cd964"
		        ></i-icon>
		      </view>
		      <view class="main-title" style="width: 100%;text-align: center;margin: 0px;">提交成功，等待管理员审核</view>
		      <view class="con">
		        预计1个工作日内审核完毕，审核 结果会短信通知到您手机上，请
		        稍后查看.
		      </view>
		      <view>
		        <button class="btn-popup" @click="closePopup">我知道了</button>
		      </view>
		    </view>
		  </view>
		</u-popup>
  </view>
</template>

<script src="./register.js"></script>
<style scoped lang="scss">
@import './register.scss';
</style>
